package com.yangjunli.bishe.mapper;

import com.yangjunli.bishe.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-04-05
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> selectByBbsArticleId(Integer bbsArticleId);

    List<Map<String, Object>> queryCommnetPage(@Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);

    Long queryCount();
}
